class Film(object):

    def __init__(self, imdbid="", name="", aka="", year="", duration="", rating="", format="DVD", trailer="", notes="", \
            taglines="", plotoutline="", plots="", languages="", subtitles="", audio="", video="", country="", genres="", \
            director="", writer="", producer="", music="", cast=""):
        self.imdbid = imdbid
        self.name = name
        self.aka = aka
        self.year = year
        self.duration = duration
        self.rating = rating
        self.format = format
        self.trailer = trailer
        self.notes = notes
        self.taglines = taglines
        self.plotoutline = plotoutline
        self.plots = plots
        self.languages = languages
        self.subtitles = subtitles
        self.audio = audio
        self.video = video
        self.country = country
        self.genres = genres
        self.director = director
        self.writer = writer
        self.producer = producer
        self.music = music
        self.cast = cast


    @classmethod
    def random(cls):
        from random import randint
        return cls(imdbid=str(randint(0, 1000000)),
                   name="name"+str(randint(0, 1000000)),
                   aka="aka"+str(randint(0, 1000000)),
                   year=str(randint(1900, 2014)),
                   duration=str(randint(0, 1000000)),
                   rating=str(randint(0, 1000000)),
                   format="format"+str(randint(0, 1000000)),
                   trailer="http://" + str(randint(0, 1000000)) + ".com",
                   notes="notes"+str(randint(0, 1000000)),
                   taglines="taglines"+str(randint(0, 1000000)),
                   plotoutline="plotoutline"+str(randint(0, 1000000)),
                   plots="plots"+str(randint(0, 1000000)),
                   languages="languages"+str(randint(0, 1000000)),
                   subtitles="subtitles"+str(randint(0, 1000000)),
                   audio="audio" + str(randint(0, 1000000)),
                   video="video"+str(randint(0, 1000000)),
                   country="country"+str(randint(0, 1000000)),
                   genres="genres"+str(randint(0, 1000000)),
                   director="director"+str(randint(0, 1000000)),
                   writer="writer"+str(randint(0, 1000000)),
                   producer="producer"+str(randint(0, 1000000)),
                   music="music"+str(randint(0, 1000000)),
                   cast="cast"+str(randint(0, 1000000)))


    @classmethod
    def invalid(cls):
        from random import randint
        return cls(imdbid="imdbid"+str(randint(0, 1000000)),
                   year="year"+str(randint(0, 1000000)),
                   duration="duration"+str(randint(0, 1000000)),
                   rating="rating"+str(randint(0, 1000000)),
                   format="format"+str(randint(0, 1000000)),
                   trailer=str(randint(0, 1000000)))